﻿@using CodeCamp.Models.Presenters
@model PresentersEditViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Edit Presenter Profile");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp | Edit Presenter Profile";
        ViewBag.EventName = "Code Camp";
    }
}

@section headaddon {
<style>
    #FirstName
    {
        width: 20em;
    }
    #LastName
    {
        width: 20em;
    }
    #EmailAddress
    {
        width: 30em;
    }
    #BlogUrl
    {
        width: 40em;
    }
    #WebsiteUrl
    {
        width: 40em;
    }
    .editor-label
    {
        margin-top: 10px;
        width: 30em;
    }
    fieldset label 
    {
        width: 30em;
    }
</style>
}

<h1 class="title">Edit your presenter profile</h1>

@Html.Partial("EditPartial", @Model)

@Html.ActionLink("Back to Details", "Details", new { id = @Model.PresenterId })

@section sidebar {
    @Html.Partial("SidebarCommonPartial")
}
